package com.ce.server.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ce.server.pojo.Working;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author 郑爽
 * @since 2021-11-26
 */
public interface WorkingMapper extends BaseMapper<Working> {

  /**
   * 根据时间获取7天内值班状态
   *
   * @param workingPage
   * @param time
   * @return
   */
  IPage<Working> getAllRecords(@Param("workingPage") Page<Working> workingPage, @Param("time") Date time);
}
